//充值
CHONGZHI = {};

CHONGZHI.is_load = false;

CHONGZHI.__INIT__=function(){
    mainView.router.load({
        url: "src/my_center/chongzhi/chongzhi.html"
    });
}

CHONGZHI.recharge = function(v){
	if(!v){
		v = $("#chongzhi_value").val();
	}
	if(v==0||v==""){
		myApp_.alert('请输入有效的金额','提示');
		return;
	}
	request_(
		url_("api/V2/recharge"),
		{"fee":v},
		function(d){
			if(d.code == 0){
				var code = d.data.code;
				var fee = d.data.fee;
				go_('pay_recharge/'+code+"/"+fee)
			}else{
				my_tips_(d.msg);
			}
		}
	);
}
